--- a/scripts/setlocalversion	2023-08-11 03:36:04.947285300 -0300
+++ b/scripts/setlocalversion	2023-08-11 03:36:13.665302086 -0300
@@ -124,7 +124,7 @@
 
 # CONFIG_LOCALVERSION and LOCALVERSION (if set)
 config_localversion=$(sed -n 's/^CONFIG_LOCALVERSION=\(.*\)$/\1/p' include/config/auto.conf)
-res="${res_rt}${config_localversion}${LOCALVERSION}${res}"
+res="${res}${config_localversion}${LOCALVERSION}"
 
 # scm version string if not at a tagged commit
 if grep -q "^CONFIG_LOCALVERSION_AUTO=y$" include/config/auto.conf; then
